<template>
  <ve-wordcloud :data="chartData" height="100%" :settings="chartSettings"></ve-wordcloud>
</template>

<script>
  // echarts-wordcloud
  // npm地址 https://www.npmjs.com/package/echarts-wordcloud
  // git地址 https://github.com/ecomfe/echarts-wordcloud#readme

  export default {
    name: 'index',
    data () {
      return {
        chartData: {
          columns: ['name', 'value'],
          rows: [
            {
              name: '测试1',
              value: 100
            },
            {
              name: '上海',
              value: 150
            },
            {
              name: '北京',
              value: 200
            },
            {
              name: '哈尔滨',
              value: 50
            }
          ]
        },
        chartSettings: {}
      }
    }
  }
</script>

<style scoped>

</style>
